package com.platform.utils.excel.excelimport;

/**
 * @author belongsha
 * @ProjectName platform
 * @Description: TODO
 * @email 990876069@qq.com
 * @date 2018/8/179:49
 */
public class WDWUtil {

    // @描述：是否是2003的excel，返回true是2003
    public static boolean isExcel2003(String filePath)  {
        return filePath.matches("^.+\\.(?i)(xls)$");
    }

    //@描述：是否是2007的excel，返回true是2007
    public static boolean isExcel2007(String filePath)  {
        return filePath.matches("^.+\\.(?i)(xlsx)$");
    }
}
